<div>
    <div class="row">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview ">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree " v-for="(item,index) in copyWorkInfo.states"
                            :key="index" @click="swatchWorkState(item)"
                            :class="{'vc-node-selected':copyWorkInfo.conditions.state == item.state}">
                            {{item.name}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">

            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('工单名称','copyWork')"
                                    v-model.trim="copyWorkInfo.conditions.workName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('发起人','copyWork')"
                                    v-model.trim="copyWorkInfo.conditions.createUserNameLike" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('开始时间','copyWork')"
                                    v-model="copyWorkInfo.conditions.queryStartTime"
                                    class=" form-control queryStartTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('结束时间','copyWork')"
                                    v-model="copyWorkInfo.conditions.queryEndTime" class=" form-control queryEndTime">
                            </div>
                        </div>
                        <div class="col-sm-2" style="margin-top: 5px;">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCopyWorkMethod()">
                                <i class="fa fa-search"></i>
                                <vc:i18n name="查询" namespace="copyWork"></vc:i18n>
                            </button>
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetCopyWorkMethod()">
                                <i class="fa fa-repeat"></i>
                                <vc:i18n name="重置" namespace="copyWork"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="抄送我的工作单" namespace="copyWork"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name='编号' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='工单名称' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='类型名称' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='标识' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='开始时间' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='结束时间' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='发起人' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='处理人' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='抄送人' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='状态' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='创建时间' namespace='copyWork'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='操作'></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="work in copyWorkInfo.works">
                                <td class="text-center">{{work.workId}}</td>
                                <td class="text-center">{{work.workName}}</td>
                                <td class="text-center">{{work.typeName}}</td>
                                <td class="text-center">{{work.workCycle == '1001'?'一次性工单':'周期性工单'}}</td>
                                <td class="text-center">{{work.startTime}}</td>
                                <td class="text-center">{{work.endTime}}</td>
                                <td class="text-center">{{work.createUserName}}</td>
                                <td class="text-center">{{work.curStaffName || '-'}}</td>
                                <td class="text-center">{{work.curCopyName || '-'}}</td>
                                <td class="text-center">{{work.stateName}}</td>
                                <td class="text-center">{{work.createTime}}</td>
                                <td class="text-center">
                                    <div class="btn-group" v-if="work.state != 'C'">
                                        <button class="btn-white btn btn-xs" v-on:click="_openCopyWorkModel(work)">
                                            <vc:i18n name='办理'></vc:i18n>
                                        </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs" v-on:click="_toWorkDetailPage(work)">
                                            <vc:i18n name='详情'></vc:i18n>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>

        </div>
    </div>
    <div id="auditModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <h3 class="m-t-none m-b ">
                        <vc:i18n name="已阅说明" namespace="audit"></vc:i18n>
                    </h3>
                    <div class="ibox-content">
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">
                                <vc:i18n name="说明" namespace="audit"></vc:i18n>
                            </label>
                            <div class="col-sm-10">
                                <textarea :placeholder="vc.i18n('必填，请填写说明','audit')" class="form-control"
                                    v-model="copyWorkInfo.audit.auditMessage">
                                </textarea>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <button class="btn btn-primary float-right" type="button" v-on:click="_auditSubmit()">
                                <i class="fa fa-check"></i>&nbsp;提交
                            </button>
                            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                data-dismiss="modal">
                                <i class="fa fa-times"></i>&nbsp;取消
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>